<?php
/**
 * Created by PhpStorm.
 * User: 郝飞
 * Date: 2017/7/7
 * Time: 9:36
 */

namespace Publish\Model;
use Common\Model\CommonModel;

class PubStoryModel extends CommonModel{
	//自动验证
	protected $_validate = array(
		//array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
		array('person_id', 'require', '人物ID不能为空！', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
		array('title', 'require', '故事标题不能为空！', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
		array('content', 'require', '故事内容不能为空！', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
	);

	protected $_auto = array (

	);

}